var mongoose = require('../common/db');

var articleSchema = new mongoose.Schema({
    articleTitle: String,
    articleContext: String,
    articleTime: String
});

// 通过ID查找
articleSchema.statics.findByArticleId = function (id, callBack) {
    this.find({_id:id}, callBack);
};

var articleModel = mongoose.model('article', articleSchema);

module.exports = articleModel;